* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #000;
  color: #fff;
  font-family: Inter, Arial, sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  background: #000;
}

/* NAVBAR */

.navbar {
  width: min(100% - 48px, 1280px);
  margin: 0 auto;
  padding: 43px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  position: relative;
  z-index: 10;
}

.logo {
  width: 182px;
  height: 64px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  color: rgba(255,255,255,.5);
  font-size: 16px;
  line-height: 32px;
  transition: .3s;
}

.nav-links a.active,
.nav-links a:hover {
  color: #fff;
}

.nav-links a.active {
  border-bottom: 2px solid #9810fa;
}

.nav-button {
  height: 47px;
  padding: 0 32px;
  background: #8200db;
  border-radius: 30px;
  color: #fff;
  line-height: 47px;
  font-weight: 600;
}

/* HERO */

.how-hero {
  width: min(100% - 48px, 1120px);
  margin: 0 auto;
  padding: 80px 0 42px;
  text-align: center;
}

.how-hero h1 {
  margin: 0;
  font-size: clamp(44px, 6vw, 62px);
  line-height: 1.2;
  font-weight: 500;
}

.how-hero p {
  max-width: 780px;
  margin: 24px auto 0;
  color: rgba(255,255,255,.65);
  font-size: 20px;
  line-height: 33px;
}

/* ORBIT */

.orbit-section {
  width: min(100% - 48px, 1280px);
  margin: 55px auto 0;
}

.orbit {
  width: 1080px;
  height: 760px;
  margin: 0 auto;
  position: relative;
}

.orbit-ring {
  width: 680px;
  height: 680px;
  border: 4px solid #7228d9;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 28px rgba(152,16,250,.35);
}

.center-orb {
  width: 330px;
  height: 330px;
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  z-index: 3;
}

.center-orb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.center-orb span {
  position: absolute;
  color: #fff;
  font-size: 42px;
  font-weight: 700;
  z-index: 4;
}

.orbit-card {
  width: 335px;
  min-height: 150px;
  padding: 28px 30px;
  background: rgba(107,38,203,.24);
  border: .5px solid rgba(255,255,255,.55);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  position: absolute;
  z-index: 5;
}

.orbit-card h3 {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 24px;
  font-weight: 700;
}

.orbit-card p {
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: 13px;
  line-height: 23px;
}

.card-top {
  left: 50%;
  top: -20px;
  transform: translateX(-50%);
}

.card-left {
  left: 0;
  top: 250px;
}

.card-right {
  right: 0;
  top: 250px;
}

.card-bottom-left {
  left: 160px;
  bottom: 20px;
}

.card-bottom-right {
  right: 160px;
  bottom: 20px;
}

/* DEMO */

.demo-section {
  width: min(100% - 48px, 1120px);
  margin: 30px auto 0;
  text-align: center;
}

.demo-pill {
  width: 250px;
  height: 48px;
  margin: 0 auto 34px;
  border-radius: 40px;
  background: rgba(130,0,219,.45);
  border: 1px solid rgba(214,119,255,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d677ff;
  font-size: 16px;
}

.demo-section h2 {
  margin: 0;
  font-size: clamp(42px, 5vw, 62px);
  line-height: 1.22;
  font-weight: 500;
}

.demo-section > p {
  margin: 24px auto 0;
  max-width: 820px;
  color: rgba(255,255,255,.65);
  font-size: 18px;
  line-height: 30px;
}

.demo-button {
  width: 250px;
  height: 48px;
  margin: 34px auto 0;
  background: #9810fa;
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
}

.demo-visual {
  width: 960px;
  min-height: 520px;
  margin: 38px auto 0;
  position: relative;
}

/* ANALYSIS CARD */

.analysis-card {
  width: 540px;
  background: #fff;
  color: #101828;
  border-radius: 10px;
  padding: 25px;
  position: absolute;
  left: 50%;
  top: 40px;
  transform: translateX(-50%);
  z-index: 3;
}

.analysis-header {
  display: flex;
  gap: 12px;
  align-items: center;
  text-align: left;
}

.analysis-header img {
  width: 48px;
  height: 48px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255,193,7,.51);
}

.analysis-header h3 {
  margin: 0;
  font-size: 18px;
}

.analysis-header p {
  margin: 2px 0 0;
  color: #6a7282;
  font-size: 14px;
}

.analysis-steps {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

.analysis-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: center;
}

.analysis-step img {
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 999px;
  background: #f3f4f6;
  border: 2px solid #d1d5dc;
}

.analysis-step.complete img {
  background: #dcfce7;
  border-color: #00a63e;
}

.analysis-step.active img {
  background: #f3e8ff;
}

.step-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.step-top span {
  color: #6a7282;
  font-size: 14px;
}

.analysis-step.complete .step-top span {
  color: #008236;
}

.analysis-step.active .step-top span {
  color: #8200db;
}

.step-top strong {
  color: #6a7282;
  font-size: 12px;
  font-weight: 400;
}

.progress-bar {
  height: 8px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  background: #d1d5dc;
}

.analysis-step.complete .progress-bar span {
  background: #00a63e;
}

.analysis-step.active .progress-bar span {
  background: linear-gradient(90deg, #ad46ff, #9810fa);
}

.analysis-summary {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.analysis-summary strong {
  display: block;
  color: #101828;
  font-size: 18px;
}

.analysis-summary span {
  color: #6a7282;
  font-size: 12px;
}

/* FLOATING STATS */

.stat-card {
  width: 220px;
  min-height: 80px;
  border-radius: 10px;
  padding: 18px;
  position: absolute;
  z-index: 6;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
  text-align: left;
}

.stat-card strong {
  display: block;
  font-size: 26px;
  line-height: 32px;
}

.stat-card span {
  color: #4a5565;
  font-size: 14px;
}

.stat-blue {
  left: 0;
  top: 70px;
  background: #eff6ff;
}

.stat-blue strong {
  color: #155dfc;
}

.stat-red {
  right: 35px;
  top: 0;
  background: #fef2f2;
}

.stat-red strong {
  color: #e7000b;
}

.stat-green {
  left: 0;
  top: 270px;
  background: #f0fdf4;
}

.stat-green strong {
  color: #00a63e;
}

.stat-yellow {
  right: 0;
  top: 250px;
  background: #fefce8;
}

.stat-yellow strong {
  color: #d08700;
}

/* FOOTER */

.footer {
  background: #7228d9;
  margin-top: 80px;
  padding: 74px 24px 36px;
}

.footer-inner {
  width: min(100%, 1268px);
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  width: 182px;
  height: 64px;
  object-fit: cover;
}

.footer-brand p,
.footer-newsletter p {
  color: rgba(255,255,255,.8);
  font-size: 16px;
  line-height: 26px;
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 18px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border: .5px solid #fff;
  border-radius: 10px;
  display: grid;
  place-items: center;
}

.footer-social img {
  width: 22px;
  height: 22px;
}

.footer-nav-cols {
  display: flex;
  gap: 60px;
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav-col h4,
.footer-newsletter h4,
.footer-newsletter label {
  margin: 0;
  font-size: 16px;
  line-height: 32px;
}

.footer-nav-col a,
.footer-newsletter p {
  color: rgba(255,255,255,.8);
}

.footer-newsletter input {
  width: 262px;
  height: 55px;
  border: 0;
  border-radius: 10px;
  padding: 0 18px;
}

.footer-divider {
  height: 1px;
  margin: 36px 0 18px;
  background: rgba(255,255,255,.3);
}

.footer-bottom p {
  margin: 0;
  color: rgba(255,255,255,.8);
  font-size: 14px;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
  .navbar {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .orbit {
    width: 100%;
    height: auto;
  }

  .orbit-ring,
  .center-orb {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    margin: 0 auto;
  }

  .orbit-ring {
    display: none;
  }

  .center-orb {
    margin-bottom: 40px;
  }

  .orbit-card {
    position: static;
    width: 100%;
    margin-bottom: 20px;
  }

  .demo-visual {
    width: 100%;
  }

  .footer-top {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .navbar,
  .how-hero,
  .orbit-section,
  .demo-section {
    width: min(100% - 32px, 1280px);
  }

  .navbar {
    padding-top: 28px;
  }

  .logo {
    width: 150px;
    height: auto;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    font-size: 14px;
  }

  .nav-button {
    width: 100%;
    text-align: center;
  }

  .demo-visual {
    min-height: auto;
  }

  .analysis-card {
    position: relative;
    width: 100%;
    left: auto;
    top: auto;
    transform: none;
  }

  .stat-card {
    position: static;
    width: 100%;
    margin-top: 18px;
  }

  .footer-top,
  .footer-nav-cols {
    flex-direction: column;
  }

  .footer-newsletter input {
    width: 100%;
  }
}
/* ================= ANIMATIONS ================= */

/* Globe rotates immediately on page load */
.center-orb img {
  animation: globeRotate 18s linear infinite;
}

@keyframes globeRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Orbit cards zoom in on loading */
.orbit-card {
  opacity: 0;
  transform: scale(0.82);
  animation: cardZoomIn 0.8s ease forwards;
}

.card-top {
  animation-delay: 0.15s;
}

.card-left {
  animation-delay: 0.3s;
}

.card-right {
  animation-delay: 0.45s;
}

.card-bottom-left {
  animation-delay: 0.6s;
}

.card-bottom-right {
  animation-delay: 0.75s;
}

@keyframes cardZoomIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Fix top card because it already uses translateX */
.card-top {
  transform: translateX(-50%) scale(0.82);
}

.card-top {
  animation-name: topCardZoomIn;
}

@keyframes topCardZoomIn {
  to {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}

/* Scroll fade animations */
.fade-on-scroll {
  opacity: 0;
  transform: translateY(70px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}

.fade-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Bottom request-demo cards fade into their exact positions */

.analysis-card {
  opacity: 0;
  transform: translateX(-50%) translateY(70px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.analysis-card.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.stat-card {
  opacity: 0;
  transition: opacity 0.9s ease, transform 0.9s ease;
}

/* left cards enter from left */
.stat-blue,
.stat-green {
  transform: translateX(-90px);
}

/* right cards enter from right */
.stat-red,
.stat-yellow {
  transform: translateX(90px);
}

.stat-card.visible {
  opacity: 1;
  transform: translateX(0);
}

.stat-blue.visible {
  transition-delay: 0.15s;
}

.stat-red.visible {
  transition-delay: 0.3s;
}

.stat-green.visible {
  transition-delay: 0.45s;
}

.stat-yellow.visible {
  transition-delay: 0.6s;
}